package com.xiao.sulinguser.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiao.sulingpublic.utils.PageUtils;
import com.xiao.sulingpublic.utils.Query;
import com.xiao.sulinguser.dao.MemberTypeDao;
import com.xiao.sulinguser.entity.MemberTypeEntity;
import com.xiao.sulinguser.service.MemberTypeService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("memberTypeService")
public class MemberTypeServiceImpl extends ServiceImpl<MemberTypeDao, MemberTypeEntity> implements MemberTypeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MemberTypeEntity> page = this.page(
                new Query<MemberTypeEntity>().getPage(params),
                new QueryWrapper<MemberTypeEntity>()
        );

        return new PageUtils(page);
    }

}